#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/CDStructures.h>
#import <UIKit/UIHardware.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIView.h>
#import <UIKit/UITable.h>
#import <UIKit/UITableColumn.h>
#import <UIKit/UITableCell.h>
#import <UIKit/UIImageAndTextTableCell.h>
#import <UIKit/UINavigationBar.h>
#import <UIKit/UIImage.h>
#import <UIKit/UIImageView.h>
#import <UIKit/UIImageView.h>
#import <UIKit/UISectionList.h>

#import "ToDoManager.h"
#import "MobileToDoListApplication.h"


@class MobileToDoListApplication;

@interface ToDoGroupEditView : UIView {
	UINavigationBar *navBar;
	UITable *table;
	BOOL editMode;
	
	UIImage *checkboxOn;
	UIImage *checkboxOff;
	int imageHeight;
	
	UISectionList *sectionList;
	
	ToDoManager *toDoManager;
	MobileToDoListApplication *td;
}

- (id)initWithFrame:(struct CGRect)frame;
- (void)reloadTableData;
- (void)createNewToDo;
- (void)buildTable;

//Delegate Methods
- (void)navigationBar:(UINavigationBar*)bar buttonClicked:(int)button;
- (void)tableRowSelected:(NSNotification *)notification;

//DataSource Methods
- (int)numberOfRowsInTable:(UITable *)table;
- (UITableCell *)table:(UITable *)table cellForRow:(int)row column:(int)col;

//Section
- (int)numberOfSectionsInSectionList:(UISectionList *)aSectionList;     
- (NSString *)sectionList:(UISectionList *)aSectionList titleForSection:(int)section;        
- (int)sectionList:(UISectionList *)aSectionList rowForSection:(int)section;
@end